From 630442f31c3fcbdb191997f72aea9228a232fb58 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 4 Mar 2019 13:15:19 +0000 Subject: [PATCH] Parse layout properties If a widget has a LayoutManager instance, then we want to parse layout properties in UI description files; the grammar is similar to packing properties in GtkContainer: ... value The properties are applied after a child has been added to its parent, to the parent's layout manager property should be set. --- gtk/gtkwidget.c | 252 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 251 insertions(+), 1 deletion(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 699f2c02dc..022cc9b799 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -284,6 +284,35 @@ * * ]| * + * If the parent widget uses a #GtkLayoutManager, #GtkWidget supports a + * custom element, used to define layout properties: + * + * |[ + * + * + * + * Description + * + * 0 + * 0 + * 1 + * 1 + * + * + * + * + * + * + * 1 + * 0 + * 1 + * 1 + * + * + * + * + * ]| + * * Finally, GtkWidget allows style information such as style classes to * be associated with widgets, using the custom